#pragma once

typedef struct _stTickTest
{
	LARGE_INTEGER tk;
	LPCWSTR msg;
} stTickTest;

class ITestLogProcesser
{
public:
	virtual void procLog(LPCWSTR log) = 0;
};

class CTickTest
{
public:
	CTickTest(){ pos = 0; started = false; }
	void start(LPCWSTR m);
	intptr_t add(LPCWSTR m);
	void finish(LPCWSTR m, ITestLogProcesser *pProc = nullptr);
protected:
	stTickTest buf[10240];
	uintptr_t pos;
	bool started;
};

extern CTickTest tkTest;
